﻿namespace YunQue.Core.DB.Entity
{
    /// <summary>
    /// 数据库实体的基类
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 数据主键
        /// </summary>
        public string Id { get; set; } = string.Empty;
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateUserId { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 租户编码
        /// </summary>
        public string TenantCode { get; set; }
    }
}
